package com.yb0os1.serve;

import com.yb0os1.dto.DishDTO;
import com.yb0os1.entity.Dish;
import com.yb0os1.result.PageResult;
import com.yb0os1.vo.DishVO;

import java.util.List;


public interface DishServe {
    void addDishAndFlavor(DishDTO dishDTO);

    PageResult pageSelect(Long categoryId, String name, Integer page, Integer pageSize, Integer status);

    void deleteDish(List<Long> ids);

    void updateDish(DishDTO dishDTO);

    DishVO getDishById(Long id);

    List<Dish> getDishByTypeId(Long categoryId);

    void updateStatus(Integer status, Long id);

    List<DishVO> listWithFlavor(Dish dish);
}
